package com.itheima.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.dao.DynamicPresentDao;
import com.itheima.health.pojo.Menu;
import com.itheima.health.service.DynamicPresentService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(interfaceClass = DynamicPresentService.class)
public class DynamicPresentServiceimpl implements DynamicPresentService {
    @Autowired
    private DynamicPresentDao dynamicPresentDao;
    @Override
    public List<Menu> dynamic(String loginUsername) {
//        List<Integer> list=dynamicPresentDao.findmenu(loginUsername);
        List<Menu> menuList=dynamicPresentDao.findparentMenu(loginUsername);
        return menuList;
    }
}
